<?php
$this->breadcrumbs = array(
    'Bus' => array('index'),
    'Bus Detail' => array('/busdetail/index'),
    $bus->name => array('index', 'id' => $bus->bus_id),
);
?>
<div class="box">
    <header>
        <h5><?php echo $bus->name; ?></h5>
    </header>
    <div class="body">
        <a href="<?php echo url('busstation/create', array('id' => $bus->bus_id)); ?>" class="quick-btn">
            <i class="icon-plus icon-2x"></i>
            <span>Add Station</span>
        </a>
        
        <?php
        $this->widget('bootstrap.widgets.TbGridView', array(
            'id' => 'subscriber-grid',
            'dataProvider' => $models->search($_GET['id']),
            'filter' => $models,
            'columns' => array(
                array(
                    'name' => 'bus_station_id', 
                    'htmlOptions' => array('width' => '50')
                ),
                array(
                    'name' => 'station_search', 
                    'value' => '$data->station->name',
                ),
                
                array(
                    'name' => 'ordering',
                    'htmlOptions' => array('width' => '50')
                ),
                array(
                    'class' => 'bootstrap.widgets.TbButtonColumn',
                    'template' => '{update}&nbsp;{delete}'
                ),
            ),
        ));
        ?>
    </div>
</div>

